import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    city:"",
    orderdata:[],
    footerNavShow:true,
    token:'',
    username:"登录"

  },
  mutations: {
    loginsuccess(state,payload){
      state.token = payload
      console.log(state.token)
      sessionStorage.setItem('token',payload)

    },
  },
  actions: {
  },
  modules: {
  }
})
